package me.zhao.subscribe;

/**
 * 具体的目标对象，负责把有关状态存入到相应的观察者对象中
 * @author zhaoying
 *
 */
public class ConcreateSubject extends Subject {
	//目标对象的状态
	private String subjectStatus;

	public String getSubjectStatus() {
		return subjectStatus;
	}

	public void setSubjectStatus(String subjectStatus) {
		this.subjectStatus = subjectStatus;
		this.notifyObservers();//状态发生变化就通知观察者
	}
	
}
